package com.content.scaffold.common.constants;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


/**
 * 配置信息赋值给常量
 *
 * @author xiaojl
 */
@Component
public class ConfigConstant {


    @Value("${notary.hua-wei.obs.defaultBucket:}")
    private String defaultBucket;
    @Value("${fund.login.private-key:}")
    private String privateKey;


    /**
     * 默认桶名
     */
    public static String DEFAULT_BUCKET_NAME;

    /**
     * 解密私钥
     */
    public static String PRIVATE_KEY;




    @PostConstruct
    public void init() {
        DEFAULT_BUCKET_NAME = defaultBucket;
        PRIVATE_KEY = privateKey;

    }
}
